phân chương trình
- Noun (Computing):
- Subprogramme / Subprogram: A distinct, often reusable section of a computer program designed to perform a specific, defined task. It is a part of the main programme and is typically called or invoked by it.
- Subroutine: A sequence of program instructions that performs a specific task, packaged as a unit. This unit can then be used in programs wherever that particular task should be performed.
- Noun:
- Lập trình viên tạo một phân chương trình để tính toán thuế. (The programmer creates a subprogram to calculate tax.)
- Phân chương trình này được gọi nhiều lần từ chương trình chính. (This subroutine is called multiple times from the main program.)
- Việc sử dụng phân chương trình giúp mã nguồn dễ bảo trì hơn. (Using subprogrammes makes the source code easier to maintain.)
"Phân chương trình con" (Subroutine/Procedure): Often used interchangeably with "phân chương trình," this term emphasizes a smaller, functional unit within a program.
- Hãy kiểm tra lỗi trong phân chương trình con đó. (Please check for errors in that subroutine.)
"Gọi phân chương trình" (To call a subprogram): The action of the main program executing a subprogram.
- Hàm chính sẽ gọi phân chương trình khi cần dữ liệu. (The main function will call the subprogram when it needs data.)
Chương trình con (n): A direct synonym, meaning "subprogram" or "subroutine."
- Anh ấy đang viết một chương trình con mới. (He is writing a new subroutine.)
Hàm (Function) (n): A specific type of subprogram that returns a value.
- Phân chương trình đó được viết dưới dạng một hàm. (That subprogram is written as a function.)
Thủ tục (Procedure) (n): A type of subprogram that executes a task but does not necessarily return a value.
- Phân chương trình này là một thủ tục đơn giản. (This subprogram is a simple procedure.)
- Subroutine: A set of instructions performing a specific task.
- Procedure: A subprogram that carries out an operation.
- Function: A subprogram that returns a result value.
- Module: A separable component, often containing one or more subprograms.
Lập trình cấu trúc (Structured Programming): A programming paradigm that heavily utilizes subprograms to break down complex tasks.
- Phân chương trình là yếu tố cốt lõi của lập trình cấu trúc. (The subprogram is a core element of structured programming.)
Tái sử dụng mã (Code Reusability): A key advantage of using subprograms, allowing the same code to be used in multiple places.
- Phân chương trình được tạo ra để tăng tính tái sử dụng mã. (The subprogram was created to increase code reusability.)
-
Subprogramme (of computers)